//
// Created by 66477 on 2022/10/5.
//

#ifndef DATA_STRUCTURE_NODE5_3_H
#define DATA_STRUCTURE_NODE5_3_H

#include <iostream>
#include <cstring>

using namespace std;

class Node5_3 {
private:
    Node5_3 *lChild = nullptr;
    char data;
    Node5_3 *rChild = nullptr;
public:
    Node5_3(char data) {
        this->data = data;
    }

    Node5_3 *getLChild() const {
        return lChild;
    }

    void setLChild(Node5_3 *lChild) {
        Node5_3::lChild = lChild;
    }

    char getData() const {
        return data;
    }

    void setData(char data) {
        Node5_3::data = data;
    }

    Node5_3 *getRChild() const {
        return rChild;
    }

    void setRChild(Node5_3 *rChild) {
        Node5_3::rChild = rChild;
    }
};

#endif //DATA_STRUCTURE_NODE5_3_H
